]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
st/icon-theme: Replace GTK's custom i18n support
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 1 Feb 2023 14:24:09 +0000 (15:24 +0100)
committerMarge Bot <marge-bot@gnome.org>
Thu, 2 Feb 2023 20:45:06 +0000 (20:45 +0000)
GTK uses its own private i18n header, which most notably defines
an I_() macro for interning static strings. That may be a worthwhile
idea for the entire codebase, but as it's out of scope for this
change set, just use the standard i18n support from glib for now.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2620>

src/st/st-icon-theme.c

index bd23f603fba8850386651170eb714f100f30b05a..fa96c1088fdf73ad9520e8220bd06a9b23715feb 100644 (file)
 #include <math.h>
 #include <glib.h>
 #include <glib/gstdio.h>
+#include <glib/gi18n-lib.h>
 
 #include "st-icon-theme.h"
 #include "st-icon-cache.h"
 #include "st-settings.h"
-#include "gtkintl.h"
 
 #define DEFAULT_ICON_THEME "Adwaita"
 
@@ -346,7 +346,7 @@ gtk_icon_theme_class_init (GtkIconThemeClass *klass)
    * that a change has occurred in the contents of the current
    * icon theme.
    */
-  signal_changed = g_signal_new (I_("changed"),
+  signal_changed = g_signal_new ("changed",
                                  G_TYPE_FROM_CLASS (klass),
                                  G_SIGNAL_RUN_LAST,
                                  G_STRUCT_OFFSET (GtkIconThemeClass, changed),